<?php require_once('include/header.php'); ?>


      <div id="middle_container_for_innerpage">
      <div id="innerpage_top_image"><img src="images/images/innerpage_top_corner_820x5.jpg"  height="5" /></div> 
      <div id="middle_inner_container">
      <?php require_once('include/left_menu.php'); ?>
        
        <div id="inner_page_middle_data">
        	<div class="main">
            <?
		if($_REQUEST['cid']){
				$st="SELECT customer.customer_id, customer.name, customer.surname, customer.father_name, customer.address, customer.image_1, customer.b_date, customer.age, customer.gender, community.community, nativeplace.nativeplace, customer.other_city, occupation.occupation, customer.email, customer.tel, customer.mob, customer.marital_status, country.country, state.state, customer.home_status, customer.feetInch, customer.feetCm, customer.weightKg, customer.weightlbs, customer.bodytype, customer.complexion, degree.degree, stream.stream, customer.other_education, customer.income, customer.curency, customer.incometype, customer.aboutfamily, customer.expectation, customer.reference, customer.father_info, customer.brother_info, customer.sister_info, customer.family_member, customer.earning_member, DATE_FORMAT(customer.online, '%d-%M-%Y') as dton
FROM ((((((customer INNER JOIN nativeplace ON customer.city = nativeplace.nativeplace_id) INNER JOIN country ON customer.country = country.country_id) INNER JOIN state ON customer.state = state.state_id) INNER JOIN degree ON customer.degree = degree.degree_id) INNER JOIN stream ON customer.stream = stream.stream_id) INNER JOIN community ON customer.community = community.community_id) INNER JOIN occupation ON customer.occupation = occupation.occupation_id where customer.customer_id=".$_REQUEST['cid'];
				$rc = mysql_query($st) or die(mysql_error());
				if($row=mysql_fetch_array($rc)){
		?>
            <table width="100%">
              <tr>
                <td class="mediumredbold">Profile Id -
                  <?=$row['customer_id']?></td>
                <td colspan="2" align="right" class="AstroGoLink"><a href="register.php">Join Now</a>, Totally free, No Hidden Charges</td>
              </tr>
              <tr>
                <td class="largeblueboldlink">Full Profile of
                  <?=$row['name']?></td>
                <td colspan="2" align="right" class="AstroGoLink">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="3"><hr  color="#999999" size="1" /></td>
              </tr>
              <tr>
                <td><span class="HomeLink1"><img src="images/arrow-grn-4x7.gif" alt="" width="4" height="7" /> Posted by :</span>
                    <?=$row['reference']?></td>
                <td rowspan="3"><table border="0" cellspacing="8">
                    <tr>
                      <td class="smallgreenbold"><a href="#address" class="smallgreenbold">View Contact Details</a></td>
                    </tr>
                    <tr>
                      <? if($_SESSION['ep_customer_id']) {?>
                      <td class="smallgreenbold"><a href="send_message.php" class="smallgreenbold">Send Message - FREE!</a></td>
                      <?} else {?>
                      <td class="smallgreenbold"><a href="send_message_fail.php" class="smallgreenbold">Send Message - FREE!</a></td>
                      <?}
			?>
                    </tr>
                    <tr>
                      <td class="smallgreenbold"><a href="register.php" class="smallgreenbold">Register now</a></td>
                    </tr>
                    <tr>
                      <td><a href="#address"><img src="images/contactNowButton.JPG" alt="" width="111" height="24" /></a></td>
                    </tr>
                    <tr>
                      <td class="smallgreenbold"><img src="images/icon_print.gif" alt="" width="20" height="20" align="absmiddle" /> <a href="javascript: self.print();" class="smallgreenbold">Print Profile</a> </td>
                    </tr>
                    <tr>
                      <td align="center">&nbsp;</td>
                    </tr>
                </table></td>
                <td rowspan="3" align="center" valign="top"><? if($row['image_1']){?>
                    <a href="#"><img src="uploaded/<?=$row['image_1']?>" width="131" height="155" border="0" class="image-border2" /></a>
                    <?}else{?>
                    <a href="#"><img src="uploaded/default.jpg" border="0" class="image-border2" /></a>
                    <?}?>
                  <br />
                    <a href="javascript:popup('view_images.php?cid=<?=$_REQUEST['cid']?>',720,500,10,10,'myWin');">View Full Photo<br />
                      Or Enlarge Photo</a></td>
              </tr>
              <tr>
                <td><span class="HomeLink1"><img src="images/arrow-grn-4x7.gif" alt="" width="4" height="7" /> Last Online :</span>
                    <?=$row['dton']?></td>
              </tr>
              <tr>
                <td valign="top"> I am
                  <?=$row['age']?>
                  ,
                  <?=$row['marital_status']?>
                  , Buddhist
                  <?=$row['gender']?>
                  living in
                  <?=$row['nativeplace']?>
                  ,
                  <?=$row['country']?>
                  <br />
                  <br />
                  <?=$row['aboutfamily']?>
                  <a href="#"> More...</a></td>
              </tr>
              <tr>
                <td colspan="3" class="navLink">About Myself</td>
              </tr>
              <tr>
                <td valign="top"><table width="100%" border="0" cellspacing="2">
                    <tr class="navLink">
                      <td colspan="2" class="titlebar">My Basics</td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Age</td>
                      <td>:
                        <?=$row['age']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Marital Status</td>
                      <td>:
                        <?=$row['marital_status']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Childrens</td>
                      <td>: No</td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Height</td>
                      <td>:
                        <?=$row['feetInch']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Complexion</td>
                      <td>:
                        <?=$row['complexion']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Body Type</td>
                      <td>:
                        <?=$row['bodytype']?></td>
                    </tr>
                </table></td>
                <td colspan="2" valign="top"><table width="100%" border="0" cellspacing="2">
                    <tr class="dingbat">
                      <td colspan="2" class="titlebar">My Family</td>
                    </tr>
                    <tr>
                      <td valign="top" class="mediumblackbold">Father</td>
                      <td>:
                        <?=$row['father_info']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Mother</td>
                      <td>: housewife</td>
                    </tr>
                    <tr>
                      <td valign="top" class="mediumblackbold">Brother</td>
                      <td>:
                        <?=$row['brother_info']?></td>
                    </tr>
                    <tr>
                      <td valign="top" class="mediumblackbold">Sister</td>
                      <td>:
                        <?=$row['sister_info']?></td>
                    </tr>
                    <tr>
                      <td valign="top" class="mediumblackbold">Family Members</td>
                      <td>:
                        <?=$row['family_member']?></td>
                    </tr>
                    <tr>
                      <td valign="top" class="mediumblackbold">Earning Members</td>
                      <td>:
                        <?=$row['earning_member']?></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="3" class="navLink">Personal Information</td>
              </tr>
              <tr>
                <td valign="top"><table width="100%" cellspacing="2">
                  <tr>
                    <td class="mediumblackbold">Name</td>
                    <td>:
                      <?=$row['name']?></td>
                  </tr>
                  <tr>
                    <td class="mediumblackbold">Surname</td>
                    <td>:
                      <?=$row['surname']?></td>
                  </tr>
                  <tr>
                    <td class="mediumblackbold">Father name</td>
                    <td>:
                      <?=$row['father_name']?></td>
                  </tr>
                  <tr>
                    <td valign="top" class="mediumblackbold"><a name="address" id="address"></a>Address</td>
                    <? 
				if($_SESSION['ep_customer_name']) {?>
                    <td>:
                      <?=$row['address']?></td>
                    <?} else {?>
                    <td>: <span class="AstroFormTips">If you want to see address<br /> </span><a href="register.php" class="smallred">&nbsp;&nbsp;Register Yourself Freely</a> </td>
                    <?}
			?>
                  </tr>
                  <tr>
                    <td class="mediumblackbold">Date of Brith</td>
                    <td>:
                      <?=$row['b_date']?></td>
                  </tr>
                  <tr>
                    <td class="mediumblackbold">Mother Tounge</td>
                    <td>:
                      <?=$row['community']?></td>
                  </tr>
                  <tr>
                    <td class="mediumblackbold">City</td>
                    <td>:
                      <?=$row['nativeplace']?></td>
                  </tr>
                  <tr>
                    <td class="mediumblackbold">Income</td>
                    <td>:
                      <?=$row['currency']?>
                        <?=$row['income']?>
                        <?=$row['incometype']?></td>
                  </tr>
                </table></td>
                <td colspan="2" valign="top"><table width="100%" border="0" cellspacing="2">
                    <tr>
                      <td class="mediumblackbold">Occupation</td>
                      <td>:
                        <?=$row['occupation']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Email</td>
                       <? 
				if($_SESSION['ep_customer_name']) {?><td>:
                        <?=$row['email']?></td><?} else {?>
                        <td>: <span class="AstroFormTips">If you want to see email<br /> </span><a href="register.php" class="smallred">&nbsp;&nbsp;Register Yourself Freely</a> </td>
                        <?}
			?>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Telephone No.</td>
                       <? 
				if($_SESSION['ep_customer_name']) {?><td>:
                        <?=$row['tel']?></td><?} else {?>
                        <td>: <span class="AstroFormTips">If you want to see Telephone<br /> </span><a href="register.php" class="smallred">&nbsp;&nbsp;Register Yourself Freely</a> </td>
                        <?}
			?>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Mobile No.</td>
                       <? 
				if($_SESSION['ep_customer_name']) {?><td>:
                        <?=$row['mob']?></td><?} else {?>
                        <td>: <span class="AstroFormTips">If you want to see Mobile<br /> </span><a href="register.php" class="smallred">&nbsp;&nbsp;Register Yourself Freely</a> </td>
                        <?}
			?>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Home Status</td>
                      <td>:
                        <?=$row['home_status']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Weight</td>
                      <td>:
                        <?=$row['weightKg']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Degree</td>
                      <td>:
                        <?=$row['degree']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Stream</td>
                      <td>:
                        <?=$row['stream']?></td>
                    </tr>
                    <tr>
                      <td class="mediumblackbold">Other Education</td>
                      <td>:
                        <?=$row['other_education']?></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td colspan="3" class="navLink">My Preferred Partner</td>
              </tr>
              <tr>
                <td colspan="2"><?=$row['expectation']?>
                    <br />
                  <br /></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="3" class="navLink">My Contact Details</td>
              </tr>
              <tr>
                <? 
				if($_SESSION['ep_customer_name']) {?>
                    <td>:
                      <?=$row['address']?></td>
                    <?} else {?>
                    <td>: <span class="AstroFormTips">If you want to see My Contact Details<br /> </span><a href="register.php" class="smallred">&nbsp;&nbsp;Register Yourself Freely</a> </td>
                    <?}
			?>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2"><strong>Not a member yet?</strong> <a href="register.php">Register</a> and become a member to express interest in <span class="Astrobluehead">
                  <?=$row['name']?>
                  <?=$row['surname']?>
                  </span>.  
                  It takes just a few minutes. <br />
                  As a Free Member you can...</td>
                <td><a href="register.php"><img src="images/register-now-blue.gif" alt="" width="132" height="34" /></a></td>
              </tr>
            </table>
            <?} else {?>
            <span class="mediumredbold">Oops! Record not found.</span>
            <?}?>
            <?} else {?>
            <span class="mediumredbold">Oops! Illegal Operation.</span>
            <?}?>
          </div>
        </div>
        

       
       
      </div> 
      <div id="corner_container_bottom_for_innerpage"><img src="images/images/innerpage_bottom_corner_820x10.jpg"  height="10" /></div>
    </div> 
      <!-- middle_container ends -->
    
    
        
    
<?php require_once('include/footer.php'); ?>
